// 以下文件格式为描述路由的协议格式
// 你可以调整 routerConfig 里的内容
// 变量名 routerConfig 为 iceworks 检测关键字，请不要修改名称
import Dashboard from './pages/Dashboard';

import { UserLogin, UserRegister } from './pages/User';

import { Charts, BaiscCharts } from './pages/Chart';

import { Profile, Terms } from './pages/Content';

import { Success, Fail } from './pages/Result';

import { BasicList, ProjectList } from './pages/List';

import {
  BasicTable,
  GeneralTable,
  Reservation,
  MyProject,
  CreateProject,
  TemplateManage,
  ProcessDefinition,
  ProcessTask,
  ProcessInstance,
} from './pages/Table';

import { Setting } from './pages/Account';

import { Empty, Forbidden, NotFound, ServerError } from './pages/Exception';

import BasicIcon from './pages/Icon';

import Calculation from './pages/Calculation';

import SystemRole from './pages/System';

import {
  MenuTwo,
  MenuTwoInfo,
  MenuThird,
  MenuThirdInfo,
} from './pages/MultiMenu';

import { getRouterData } from './utils/utils';

import PageName from './pages/PageName';
import { asideMenuConfig } from './menuConfig';

const routerConfig = [
  {
    path: '/result/fail',
    component: Fail,
  },
  {
    path: '/dashboard/monitor',
    component: Dashboard,
  },
  {
    path: '/chart/general',
    component: Charts,
  },
  {
    path: '/table/basic',
    component: BasicTable,
  },
  {
    path: '/table/general',
    component: GeneralTable,
  },
  {
    path: '/table/reservation',
    component: Reservation,
  },
  {
    path: '/table/project',
    component: MyProject,
  },
  {
    path: '/table/project_create',
    component: CreateProject,
  },
  {
    path: '/table/templateMan',
    component: TemplateManage,
  },
  {
    path: '/table/processDefinition',
    component: ProcessDefinition,
  },
  {
    path: '/table/processTask',
    component: ProcessTask,
  },
  {
    path: '/table/processInstance',
    component: ProcessInstance,
  },
  {
    path: '/list/basic',
    component: BasicList,
  },
  {
    path: '/list/general',
    component: ProjectList,
  },
  {
    path: '/profile/basic',
    component: Profile,
  },
  {
    path: '/profile/general',
    component: Terms,
  },
  {
    path: '/result/success',
    component: Success,
  },
  {
    path: '/chart/basic',
    component: BaiscCharts,
  },
  {
    path: '/account/setting',
    component: Setting,
  },
  {
    path: '/exception/500',
    component: ServerError,
  },
  {
    path: '/exception/403',
    component: Forbidden,
  },
  {
    path: '/exception/204',
    component: Empty,
  },
  {
    path: '/exception/404',
    component: NotFound,
  },
  {
    path: '/icon/basic',
    component: BasicIcon,
  },
  {
    path: '/stateMan/calc',
    component: Calculation,
  },
  {
    path: '/sysMangent/role',
    component: SystemRole,
  },
  {
    path: '/user/login',
    component: UserLogin,
  },
  {
    path: '/user/register',
    component: UserRegister,
  },
  {
    path: '/multi/pagetwo',
    component: MenuTwo,
  },
  {
    path: '/multi/pagetwo_info',
    component: MenuTwoInfo,
  },
  {
    path: '/multi/menutwo/pagethird',
    component: MenuThird,
  },
  {
    path: '/multi/menutwo/pagethird_info',
    component: MenuThirdInfo,
  },
  {
    path: '/pagetest',
    component: PageName,
  },
];

const routerData = getRouterData(routerConfig, asideMenuConfig);

export { routerData };
